package com.qinglian.controller;

import com.qinglian.entity.Evaluate;
import com.qinglian.service.IEvaluateListService;
import com.qinglian.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author augn
 * @since 2023-04-29
 */
@RestController
@CrossOrigin
@RequestMapping("/evaluateList")
public class EvaluateListController {

    @Autowired
    private IEvaluateListService service;

    @PostMapping("/addEvaluate")
    public Result<?> addEvaluate(@RequestBody Evaluate evaluate){
        return service.addEvaluate(evaluate);
    }

    @GetMapping("/delEvaluate")
    public Result<?> delEvaluate(@RequestParam Integer evaId){
        return service.delEvaluate(evaId);
    }
}
